package com.label.grade.entity.Do;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName UNDERGRA_COURSE_SCHEDULE
 */
public class UndergraCourseSchedule implements Serializable {
    /**
     * 实验学时
     */
    private Long experimentHours;

    /**
     * 上课学时
     */
    private Long classHours;

    /**
     * 学院
     */
    private String college;

    /**
     * 授课学时
     */
    private Long teachingHours;

    /**
     * 年度
     */
    private String academicYear;

    /**
     * 学期
     */
    private String semester;

    /**
     * 课程号
     */
    private String courseCode;

    /**
     * 课程名
     */
    private String courseName;

    /**
     * 教师姓名
     */
    private String teacherName;

    /**
     * 教师工号
     */
    private String teacherCode;

    /**
     * 授课班级
     */
    private String teachingClass;

    /**
     * 选课人数
     */
    private Long enrolledStudents;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 备注
     */
    private String remark;

    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private static final long serialVersionUID = 1L;

    /**
     * 实验学时
     */
    public Long getExperimentHours() {
        return experimentHours;
    }

    /**
     * 实验学时
     */
    public void setExperimentHours(Long experimentHours) {
        this.experimentHours = experimentHours;
    }

    /**
     * 上课学时
     */
    public Long getClassHours() {
        return classHours;
    }

    /**
     * 上课学时
     */
    public void setClassHours(Long classHours) {
        this.classHours = classHours;
    }

    /**
     * 学院
     */
    public String getCollege() {
        return college;
    }

    /**
     * 学院
     */
    public void setCollege(String college) {
        this.college = college;
    }

    /**
     * 授课学时
     */
    public Long getTeachingHours() {
        return teachingHours;
    }

    /**
     * 授课学时
     */
    public void setTeachingHours(Long teachingHours) {
        this.teachingHours = teachingHours;
    }

    /**
     * 年度
     */
    public String getAcademicYear() {
        return academicYear;
    }

    /**
     * 年度
     */
    public void setAcademicYear(String academicYear) {
        this.academicYear = academicYear;
    }

    /**
     * 学期
     */
    public String getSemester() {
        return semester;
    }

    /**
     * 学期
     */
    public void setSemester(String semester) {
        this.semester = semester;
    }

    /**
     * 课程号
     */
    public String getCourseCode() {
        return courseCode;
    }

    /**
     * 课程号
     */
    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    /**
     * 课程名
     */
    public String getCourseName() {
        return courseName;
    }

    /**
     * 课程名
     */
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    /**
     * 教师姓名
     */
    public String getTeacherName() {
        return teacherName;
    }

    /**
     * 教师姓名
     */
    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    /**
     * 教师工号
     */
    public String getTeacherCode() {
        return teacherCode;
    }

    /**
     * 教师工号
     */
    public void setTeacherCode(String teacherCode) {
        this.teacherCode = teacherCode;
    }

    /**
     * 授课班级
     */
    public String getTeachingClass() {
        return teachingClass;
    }

    /**
     * 授课班级
     */
    public void setTeachingClass(String teachingClass) {
        this.teachingClass = teachingClass;
    }

    /**
     * 选课人数
     */
    public Long getEnrolledStudents() {
        return enrolledStudents;
    }

    /**
     * 选课人数
     */
    public void setEnrolledStudents(Long enrolledStudents) {
        this.enrolledStudents = enrolledStudents;
    }

    /**
     * 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UndergraCourseSchedule other = (UndergraCourseSchedule) that;
        return (this.getExperimentHours() == null ? other.getExperimentHours() == null : this.getExperimentHours().equals(other.getExperimentHours()))
            && (this.getClassHours() == null ? other.getClassHours() == null : this.getClassHours().equals(other.getClassHours()))
            && (this.getCollege() == null ? other.getCollege() == null : this.getCollege().equals(other.getCollege()))
            && (this.getTeachingHours() == null ? other.getTeachingHours() == null : this.getTeachingHours().equals(other.getTeachingHours()))
            && (this.getAcademicYear() == null ? other.getAcademicYear() == null : this.getAcademicYear().equals(other.getAcademicYear()))
            && (this.getSemester() == null ? other.getSemester() == null : this.getSemester().equals(other.getSemester()))
            && (this.getCourseCode() == null ? other.getCourseCode() == null : this.getCourseCode().equals(other.getCourseCode()))
            && (this.getCourseName() == null ? other.getCourseName() == null : this.getCourseName().equals(other.getCourseName()))
            && (this.getTeacherName() == null ? other.getTeacherName() == null : this.getTeacherName().equals(other.getTeacherName()))
            && (this.getTeacherCode() == null ? other.getTeacherCode() == null : this.getTeacherCode().equals(other.getTeacherCode()))
            && (this.getTeachingClass() == null ? other.getTeachingClass() == null : this.getTeachingClass().equals(other.getTeachingClass()))
            && (this.getEnrolledStudents() == null ? other.getEnrolledStudents() == null : this.getEnrolledStudents().equals(other.getEnrolledStudents()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExperimentHours() == null) ? 0 : getExperimentHours().hashCode());
        result = prime * result + ((getClassHours() == null) ? 0 : getClassHours().hashCode());
        result = prime * result + ((getCollege() == null) ? 0 : getCollege().hashCode());
        result = prime * result + ((getTeachingHours() == null) ? 0 : getTeachingHours().hashCode());
        result = prime * result + ((getAcademicYear() == null) ? 0 : getAcademicYear().hashCode());
        result = prime * result + ((getSemester() == null) ? 0 : getSemester().hashCode());
        result = prime * result + ((getCourseCode() == null) ? 0 : getCourseCode().hashCode());
        result = prime * result + ((getCourseName() == null) ? 0 : getCourseName().hashCode());
        result = prime * result + ((getTeacherName() == null) ? 0 : getTeacherName().hashCode());
        result = prime * result + ((getTeacherCode() == null) ? 0 : getTeacherCode().hashCode());
        result = prime * result + ((getTeachingClass() == null) ? 0 : getTeachingClass().hashCode());
        result = prime * result + ((getEnrolledStudents() == null) ? 0 : getEnrolledStudents().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", experimentHours=").append(experimentHours);
        sb.append(", classHours=").append(classHours);
        sb.append(", college=").append(college);
        sb.append(", teachingHours=").append(teachingHours);
        sb.append(", academicYear=").append(academicYear);
        sb.append(", semester=").append(semester);
        sb.append(", courseCode=").append(courseCode);
        sb.append(", courseName=").append(courseName);
        sb.append(", teacherName=").append(teacherName);
        sb.append(", teacherCode=").append(teacherCode);
        sb.append(", teachingClass=").append(teachingClass);
        sb.append(", enrolledStudents=").append(enrolledStudents);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", remark=").append(remark);
        sb.append(", id=").append(id);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}